-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Facebook connect example #2
base: master
Are you sure you want to change the base?
Conversation
This code does not work anymore, at least I'm getting errors. Perhaps it needs to be updated? |
It still works (just checked it). Of course you would have to update the rakefile and build.yml if you are using the latest version of Rhodes framework. |
That must be the problem then, I'm using the latest version of Rhodes. After logging in to facebook I just get a blank black page. Oh and after clicking the button "check if like..." I get a quick flash of "error loading page". Perhaps this is all related to the rakefile & build.yml. Thanks for the quick response! |
Mmm... from your description it sounds like it is something else (if it was a rakefile/build problem you wouldn't be able to launch the app)... what platform/emulator are you using to test? |
I used android through rhosimulator, only thing I have working at the moment because of some javac issues. |
Mac or Windows? I'm testing it in windows and it works fine under those settings... |
Yep I got logged in & authorized the app. I am running from Mac. On Fri, Feb 17, 2012 at 5:48 PM, Raul Vejar <
|
Try deauthorizing the app from your facebook account settings and run the demo again (sometimes facebook gets messed up that way) I'll try running the demo on my mac and see if it is having any issues. BTW: I'm running Rhodes 3.2.3, it shouldn't make a difference though... |
Same thing. I'm running 3.3.2. "Hopefully" you'll run into the same issues On Fri, Feb 17, 2012 at 5:52 PM, Raul Vejar <
|
I have the same issue on 3.3.3. I get the very quick page "error loading page". Anyone knows how to fix it? Except this issue everything works fine. |
Found the answer... By using rel="external" on your link you bypass the AJAX part of the loading -- this means the page loads, but it's not injected into the DOM. |
This code was written for the old jqtouch, keep that in mind when copyin and pasting the view code |
I have a problem... After logging, it shows website of Facebook.. def facebook_check_callback Connect Fb -> Presentation before login -> login -> Website (Facebook) ¿? I think it's about " redirect_uri " and localhost app.. because its a mobile app... |
Yes, it should go back to the app, it's built to work that way and with a The example was written with jqtouch in mind, if you are using jquery On Sat, Apr 21, 2012 at 2:24 AM, Eduardo Adbeel Arenas <
|
I just add rel="external" on the link: a href="<%= url_for :action => :connect_to_facebook %>" rel="external"> Connect </a This link goes to login... I think it's about localhost app Im using emulator Android 2.1. Rhodes 3.3.2 Ruby 1.9.2 |
what url are you navigating to? Use the log console to figure out the exact On Sat, Apr 21, 2012 at 12:34 PM, Eduardo Adbeel Arenas <
|
RUN! So.. my configuration is bad. Can you tell me what do you do in developers.facebook.com, please? |
I'm attaching 2 screens with the settings for the rhomobile like app. BTW: I speak Spanish, if that is your first language... [image: Inline image 2]
|
Dónde están los screens? |
Estan embebidos en el mail anterior On Sat, Apr 21, 2012 at 6:54 PM, Eduardo Adbeel Arenas <
|
Cómo los veo? solo veo: [image: Inline image 2] |
Con cualquier cliente de correo que te muestre imagenes dentro de los A la noche te las mando en un nuevo mail como attachments esta vez si aun On Mon, Apr 23, 2012 at 1:36 AM, Eduardo Adbeel Arenas <
|
ok gracias. |
Me decia del url el cual navega mi app, no? |
Tienes que poner el url del servicio de redireccion que estas usando, en el caso del app de demostracion que usa el sample: http://redirect.me |
Hola como están, bueno a mi si me corre sin problema pero no arranca en el aplicativo de FB sino en una ventana externa. Hay forma de ejecutarlo en el app de FB? Saludos. |
Thank you guys, rel="external". Fixed it for me |
Includes code example of how to use Facebook connect to integrate facebook into a rhodes app by using a redirect service to deal with Rhode's dynamic ports and Facebook requirements that redirect urls are defined in the configuration of the facebook app